package com.yin.myproject.netty.demo05;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * NIO时间服务器客户端
 *
 * @author Eason
 * @create 2017-12-16 14:48
 **/
public class NioTimeClient {
    public static void main(String[] args) {
        ExecutorService service = Executors.newCachedThreadPool();
        for (int i = 0; i < 10000; i++) {
            service.execute(new Thread(new TimeClientHandler("127.0.0.1", 8080), "timeClient-00" + i));
        }
    }
}
